<extend name="Base/common"/>

<block name="style">
    <link href="__CSS__/help.css" rel="stylesheet" type="text/css"/>

</block>

<block name="body">
<div class="col-xs-12">
    <!--userinfo-->
    <include file="Public/user_info"/>
    <include file="Public/_top_menu"/>

</div>


<div class="col-md-9"  >
    <div class="bgwhite pull-left" style="margin-top: 0">
        <div class="help_h">
            <a  href="{:U('help/usercenter/publish',array('uid'=>$uid))}"  class="pull-left " style="width: 140px;">发布的帮忙</a>
            <a href="{:U('help/usercenter/attend',array('uid'=>$uid))}" class="pull-left " style="width: 140px;">参加的帮忙</a>

            <a href="{:U('help/usercenter/snapshot',array('uid'=>$uid))}" class="pull-left active" style="width: 180px;">帮忙的历史快照</a>

        </div>

        <div class="help_list pull-left"  style="width: 100%;padding-left: 10px;padding-right: 10px;" >
            <if condition="!$list">
                <div class="row">
                    <div class="col-xs-12">
                        <p class="text-muted" style="text-align: center; font-size: 3em;">
                            <br/><br/>
                            没有符合的帮忙～
                            <br/><br/><br/>
                        </p>
                    </div>
                </div>
            </if>
            <volist name="list" id="vo">
                <li class="col-lg-4 col-sm-6 help_one help_snapshot">
                    <dl style="max-width: 257px;">
                        <dt>
                            <a class="help_img" href="{:U('help/index/snapshotdetail',array('id'=>$vo['id']))}" target="_blank">
                                <img src="{:getThumbImageById($vo['cover_id'],257,257)}"
                                     style="width:100%;max-width: 257px;height: 257px" class=""/>

                                <div class="help_title_cav"></div>
                                <div class="help_title">{$vo.title}</div>
                            </a>
                        </dt>
                        <dd style="font-size: 12px;">
                            <div style="padding: 5px 10px 5px 10px;font-size: 16px; "><a class="author " href="{$vo.user.space_url}"
                                                                       ucard="{$vo.user.uid}">
                                {$vo.user.nickname} </a></div>
                            <div style="padding: 0 10px ">
                                好评率<a><span>{$vo.rate}%</span></a>&nbsp;&nbsp;
                               <span class="pull-right"> 已报名<a><span>{$vo.sign_count}</span></a>&nbsp;&nbsp;
                                    <span class="on_end">{$vo.state|get_help_condition}</span></span>
                            </div>

                            <div class="help_snapshot_action action">

                                <a href="{:U('help/index/snapshotdetail',array('id'=>$vo['id']))}" style="color: #cccccc;float: none!important;" class="col-xs-12 text-center pull-left " >网页快照</a>

                            </div>
                        </dd>
                    </dl>
                </li>
            </volist>


        </div>

        <div class="clearfix text-center">
            {:getPagination($totalCount,$r)}
        </div>
    </div>
</div>
<div class="col-md-3 col-xs-12">
    <div class="bgwhite" style="padding-bottom: 20px;margin-top: 0">
        {:W('HelpMe/lists',array('uid'=>$uid))}
    </div>
</div>
</block>

